home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6835 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  862 b 

  1. Path: gail.ripco.com!mambuhl
  2. From: mambuhl@ripco.com (Martin Ambuhl)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Check if A-drive is r
  5. Date: 15 Feb 1996 17:29:00 GMT
  6. Organization: Ripco Communications, Inc.
  7. Message-ID: <4fvqgs$qok@gail.ripco.com>
  8. NNTP-Posting-Host: golden.ripco.com
  9.  
  10. proviron@glo.be (Koen Van de Velde)
  11. in <4fpsuq$9nq@rhea.glo.be> asks:
  12.  
  13. >My question: How can I check if the A-drive is pressent before DOS
  14. >(aahhhgg) does ?
  15.  
  16.     if (can(see)) {
  17.         open(eyes);
  18.         a_drive_status = lookat(drive_a);
  19.         }
  20.     else
  21.     if (can(feel)) {
  22.         extend(hand);
  23.         a_drive_status = feel(drive_a);
  24.     }
  25.     else {
  26.         fprintf(stderr,"I will NOT stick my tongue in the drive\n");
  27.         exit(EXIT_FAILURE);
  28.     }
  29.                                                   
  30. --
  31. * Martin Ambuhl       net: mambuhl@ripco.com
  32. * Chicago, IL (USA)    
  33.